package com.attendance.Utils.Converter;

import com.attendance.model.Employee;
import com.attendance.model.Form.EmployeeForm;

/**
 * Created by OPTIPLEX on 2016/12/1.
 */
public class EmployeeConverter {

    public static Employee convert(EmployeeForm employeeForm){
        Employee employee = new Employee();
        employee.setId(employeeForm.getId());
        employee.setDepartmentId(employeeForm.getDepartmentId());
        employee.setJob(employeeForm.getJob());
        employee.setSex(employeeForm.getSex());
        employee.setName(employeeForm.getName());
        employee.setUsername(employeeForm.getUsername());
        employee.setPassword(employeeForm.getPassword());
        return employee;
    }

}
